<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>77vue中的条件渲染</title>
  <script src="./vue.js"></script>
</head>
<body>
  <div id="root">
    <div v-if="show">{{msg}}</div>
    <div v-show="show">{{msg}}</div>

    <div v-if="show">{{msg}}</div>
    <div v-else>bye world</div>

    <div v-if="showA==='a'">This is A</div>
    <div v-else-if="showA==='b'">this is B</div>
    <div v-else>this is others</div>
  </div>
  <script>
    var vm = new Vue({
      el: "#root",
      data: {
        show: false,
        showA: "b",
        msg: "hello vue"
      },

    })
  </script>
  
</body>
</html>